Programming in Objective-C, Fifth Edition by Stephen G. Kochan
Author:Stephen G. Kochan
Language: eng
Format: epub
Publisher: Addison-Wesley
Published: 2013-03-25T16:00:00+00:00
The #import Statement
When you have programmed in Objective-C for a while, you will find yourself developing your own set of macros, which you will want to use in each of your programs. But instead of having to type these macros into each new program you write, the preprocessor enables you to collect all your definitions into a separate file and then include them in your program, using the #import statement. These files—similar to the ones you’ve previously encountered but haven’t written yourself—normally end with the characters .h and are referred to as header or include files.
Suppose that you are writing a series of programs for performing various metric conversions. You might want to set up some #define statements for the various constants you need for performing your conversions:
#define INCHES_PER_CENTIMETER 0.394
#define CENTIMETERS_PER_INCH (1 / INCHES_PER_CENTIMETER)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Music for Film and Game Soundtracks with FL Studio by Joshua Au-Yeung(3739)
The Pro Tools 2023 Post-Audio Cookbook by Emiliano Paternostro(3711)
The Ultimate Studio One Pro Book by Doruk Somunkiran(3588)
Video Editing Made Easy with DaVinci Resolve 18 by Lance Phillips(3084)
The Music Producer's Creative Guide to Ableton Live 11 by Anna Lakatos(2807)
Adobe Animate 2022 for Creative Professionals by Joseph Labrecque(2669)
Significant Zero by Walt Williams(1875)
Unity 2020 Virtual Reality Projects - Third Edition by Jonathan Linowes(1731)
Hands-On Game Development with WebAssembly by Rick Battagline(1724)
Turing's Cathedral by George Dyson(1529)
The Freelance Manifesto: A Field Guide for the Modern Motion Designer by Joey Korenman(1498)
Blender for Video Production Quick Start Guide by Allan Brito(1489)
Voicebot and Chatbot Design: Flexible conversational interfaces with Amazon Alexa, Google Home, and Facebook Messenger by Rachel Batish(1475)
EPUB From the Ground Up by Jarret Buse(1465)
OpenGL 4 Shading Language Cookbook by David Wolff(1457)
OpenGL 4 Shading Language Cookbook Second Edition by David Wolff(1409)
Learning D by 2015(1408)
Windows 7: The Missing Manual by Pogue David(1327)
Pro Tools All-in-One For Dummies by Jeff Strong(1297)
